package io.github.wanggit.antcms.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.github.wanggit.antcms.server.domain.AntArticle;
import io.github.wanggit.antcms.server.domain.AntMedia;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface MediaService extends IService<AntMedia> {
    void deleteMedias(List<Long> ids);

    AntMedia saveImageWhenCreateArticle(String imageBase64);

    AntMedia saveMedia(MultipartFile multipartFile);

    void deleteMedia(Long id);

    List<AntMedia> findByUrls(List<String> imageUrls);

    List<AntMedia> findMediasByArticle(AntArticle article);
}
